import request from "../../../utils/request";
export function  findAllDataSource(obj){
    return request({
        url:`/admin/demo-data-conf/page`,
        method:'post',
        data:JSON.stringify(obj)
    })
}

export function  addDataSource(obj){
    return request({
        url:`/admin/demo-data-conf/save`,
        method:'post',
        data:JSON.stringify(obj)
    })
}

export function  updateDataSource(obj){
    return request({
        url:`/admin/demo-data-conf/update`,
        method:'post',
        data:JSON.stringify(obj)
    })
}


export function  deleteDataSource(id){
    return request({
        url:`/admin/demo-data-conf/delete/`+id,
        method:'post'
    })
}
export function  findDataSourceById(id){
    return request({
        url:`/admin/demo-data-conf/get?id=`+id,
        method:'get'
    })
}

